import Vue from 'vue'
import Vuex from 'vuex'
import Var, { IVar } from '@/store/modules/Var'
import Api, { IApi } from '@/store/modules/Api'

Vue.use(Vuex)

export interface IRootState {
  var: IVar
  api: IApi
}

export default new Vuex.Store<IRootState>({

  modules: {
    api: Api,
    var: Var
  }
})
